// POST /role/register

import request from '@/utils/request'
export function userList(params) {
  return request({
    url:'/role/list',
    method:'get',
    params:params
  })
}
// export functi



export function registerUser(data) {
  return request({
    url:'/role/create',
    method:'post',
    data:data
  })
}


export function deleteUser(data) {
  let dataList = data.join(',')
  return request({
    url:'/role/delete?ids=' + dataList,
    method:'post'
  })
}


export function upDateUser(data,id) {
  return request({
    url:'/role/update/' + id,
    method:'post',
    data:data
  })
}

// export function userList(data) {
//   return request({
//     url:'/role/list',
//     method:'get',
//     data:data
//   })
// }
